!'use strict';
let groupsController = require('../../../app/controller/back/operate/groupsController');
groupsController = ModelProxy(groupsController);
let router = require('express').Router();

//分组管理
router.get('/page', groupsController.groupsPage);
router.post('/list', groupsController.groupsList);
//分组管理——创建
router.get('/create/page', groupsController.groupsCreatePage);
router.post('/create/save', groupsController.groupsCreateSave);
//分组管理——详情
router.get('/detail/page', groupsController.groupsDetailPage);
router.post('/detail/data', groupsController.groupsDetail);
router.post('/detail/list', groupsController.groupsDetailList);
//分组管理——照明计划
router.get('/detail/planPage', groupsController.groupsPlanPage);
router.post('/detail/planList', groupsController.groupsPlanList);
//分组管理——修改
router.get('/update/page', groupsController.groupsUpdatePage);
router.post('/update/save', groupsController.groupsUpdateSave);
//分组管理——转移分组
router.post('/update/groupsList', groupsController.groupsUpdateList);
router.post('/update/groupsConfirm', groupsController.groupsUpdateConfirm);
//分组管理——照明计划的修改
router.post('/update/planConfirm', groupsController.planConfirm);
router.post('/update/planSave', groupsController.planSave);
//分组管理——删除
router.post('/delete', groupsController.groupsDelete);

module.exports = router;